package cn.stevenyang.signals;

import java.util.HashMap;
import java.util.Map;

public class Signal {
    public String getName() {
        return name;
    }

    public Map<String, Object> getParameters() {
        return parameters;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setParameter(String key, Object value) {
        this.parameters.put(key, value);
    }

    private String name;

    private Map<String, Object> parameters = new HashMap<>();

    @Override
    public boolean equals(Object obj) {
        return getName().equals(obj);
    }
}